home *** CD-ROM | disk | FTP | other *** search
- global gTHRefresh
-
- on adjustVRPos aHAdjust, aVAdjust, aZAdjust
- set vHPan to float(PanoGetHPanAngle()) + aHAdjust
- set vVPan to float(PanoGetVPanAngle()) + aVAdjust
- set vZoom to float(PanoGetZoomAngle()) + aZAdjust
- SetPanoMovieView(string(vHPan), string(vVPan), string(vZoom))
- end
-
- on setVRSize aNormal, checkIt
- global gPanoMovieObj, gTHNormalSize
- if voidp(checkIt) then
- set checkIt to 1
- end if
- if checkIt then
- if aNormal = gTHNormalSize then
- return
- end if
- end if
- set vH to PanoGetHPanAngle()
- set vV to PanoGetVPanAngle()
- set vZ to PanoGetZoomAngle()
- set gTHNormalSize to aNormal
- VRNormalSize(gTHNormalSize)
- SetPanoMovieView(vH, vV, vZ)
- ShowPanoMovie(0)
- set gTHRefresh to 1
- end
-
- on VRNormalSize aFlag
- global gTHVRPath, cTHVRChannel, gPanoMovieObj, cTHBigCheckSprite, cTHBiggerCheckSprite, cTHBigSprite, cTHBiggerSprite
- ClosePanoMovie()
- if aFlag then
- set cTHVRChannel to 44
- OpenPanoMovie(gTHVRPath & "th.mov", cTHVRChannel, 0)
- set the visible of sprite cTHBigCheckSprite to 1
- set the visible of sprite cTHBiggerCheckSprite to 0
- set the visible of sprite 2 to 0
- updateStage()
- else
- set cTHVRChannel to 43
- OpenPanoMovie(gTHVRPath & "th2.mov", cTHVRChannel, 0)
- set the visible of sprite cTHBigCheckSprite to 0
- set the visible of sprite cTHBiggerCheckSprite to 1
- set the visible of sprite 2 to 1
- updateStage()
- end if
- end
-
- on spinVR aTimes
- repeat with vI = 1 to aTimes
- adjustVRPos(10, 0, 0)
- end repeat
- end
-
- on inOutVR aTimes
- end
-
- on warpVR aTimes
- end
-
- on hitHotspot pHotSpotID
- global gTHHotspot
- set vInfo to getaProp(gTHLocation, pHotSpotID)
- if not voidp(vInfo) then
- set vDest to getAt(vInfo, 2)
- put vDest
- if char 1 of vDest = "-" then
- specialLocation(vDest)
- else
- playDestSound(vDest)
- navGoTo(vDest)
- end if
- end if
- end
-
- on rolloverHandler pHotSpotID
- global gTHHotspot
- put pHotSpotID
- set vInfo to getaProp(gTHLocation, pHotSpotID)
- if not voidp(vInfo) then
- set vCast to getAt(vInfo, 1)
- if vCast = EMPTY then
- set vCast to "BLANK-LABEL"
- end if
- puppetSprite(20, 1)
- set the castNum of sprite 20 to the number of cast vCast
- updateStage()
- end if
- end
-
- on playDestSound aDest
- if aDest = "sd" then
- puppetSound("SuPrize")
- end if
- updateStage()
- end
-
- factory thCallbacks
- method thMouseOverHandler
- global gPanoMovieObj
- put "Mouse over panoramic movie"
- if objectp(gPanoMovieObj) then
- end if
-
- method thRolloverHandler pHotSpotID
- rolloverHandler(pHotSpotID)
-
- method thMouseDownHandler
- global gPanoMovieObj
- put "Mouse down during mMouseOver call"
- if objectp(gPanoMovieObj) then
- gPanoMovieObj(mPassMouseDown)
- end if
-
- method thPanZoomStartHandler
- put "About to pan or zoom in panoramic movie"
-
- method thMouseStillDownHandler
- global gPanoMovieObj
- put "Enter mouse still down from panoramic movie"
- if objectp(gPanoMovieObj) then
- end if
- put "Leave mouse still down from panoramic movie"
-
- method thNodeLeaveHandler pToNode
- put "Jumping to node " & pToNode & " in panoramic movie"
-